﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define GenQueryOut_PI "int rowCnt; int attriCnt; int continueInx; int totalRowCount; struct SqlResult_PI[MAX_SQL_ATTR];"
    [Packet("GenQueryOut_PI")]
    internal class GeneralQueryOutputPacket : Packet
    {
        [PacketField("rowCnt", 0, DataTypes.Int)]
        public int RowsCount { get; set; }

        [PacketField("attriCnt", 1, DataTypes.Int)]
        public int AttributesCount { get; set; }

        [PacketField("continueInx", 2, DataTypes.Int)]
        public int ExecutionID { get; set; }

        [PacketField("totalRowCount", 3, DataTypes.Int)]
        public int TotalRows { get; set; }

        [PacketField("SqlResult_PI", 4, DataTypes.Packet, true)]
        public SqlResultPacket[] Results { get; set; }

    }
}
